package com.travel.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * 对应数据库表的实体类
 * 表结构包含：id、user_name、password、link_tel、state、create_time、update_time 字段
 */
@Data
@ApiModel(value = "User实体类", description = "对应数据库表的用户信息实体")
public class AdminUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", example = "自定义的46位字符串")
    private String id;

    @ApiModelProperty(value = "用户名", example = "testUser")
    private String userName;

    @ApiModelProperty(value = "密码", example = "123456")
    private String password;

    @ApiModelProperty(value = "手机号码", example = "13800138000")
    private String linkTel;

    @ApiModelProperty(value = "状态", example = "0")
    private Integer state;

    @ApiModelProperty(value = "创建时间", example = "2025-06-12 10:00:00")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间", example = "2025-06-12 11:00:00")
    private LocalDateTime updateTime;
}